package com.chenjie.executor.day09;

/**
 * packageName com.chenjie.executor.day09
 *
 * @author chenjie
 * @version JDK 8
 * @className Main1 (此处以class为例)
 * @date 2024/5/27
 * @description TODO
 */
public class Main {

    /**
     * 三秒后打印出结果，线程结束，主进程退出
     * @param args
     */
    public static void main(String[] args) {
        PrintTask pringTask = new PrintTask();
        ValueTask valueTask=new ValueTask();
        Thread thread=new Thread(pringTask);
        Thread thread1=new Thread(valueTask);
        thread.start();
        thread1.start();
    }
}
